package org.example.multiThreading.creationThreads;

public class MyThread {
    public static void main(String[] args) {
        TestThread thread = new TestThread();
        thread.start();
        for (int i = 0; i < 10; i++) {
            System.out.println("主线程------"+i);
        }
    }
}

class TestThread extends Thread{

    @Override
    public void run(){
        for (int i = 0; i < 10; i++) {
            System.out.println("子线程------"+i);
        }
    }

}
